home *** CD-ROM | disk | FTP | other *** search
/ Know Your Hockey - The Greatest Player Resource / Know Your Hockey: The Greatest Player Resource.iso / hockey / director / ktgcst.cst / 00089_Script_loadAudioMedia < prev    next >
Text File  |  1998-09-28  |  3KB  |  67 lines

  1. Global AnnSnd,CoachSnd,gbuttonstate
  2.  
  3. on loadAudioMedia x
  4.   puppetsound 0
  5.   set markerName = the name of member (the membernum of sprite x) &"_AUDIO"
  6.   set start = the number of member markername 
  7.   set AnnSnd = the name of member (start+1) of castlib "internal"
  8.   set CoachSnd = the name of member (start+2) of castlib "internal"
  9.    if markerName = "SHOW_AUDIO" then exit --DONT PLAY IF YOU HIT SHOWALL
  10.   set the membernum of sprite 41 = the membernum of sprite 41+1
  11.   set the blend of sprite 41 = 100
  12.   setat(gbuttonState,41,2)
  13.   -- remove the next lines after all the sound is in
  14.   -- this line bails if no sound files are present
  15.   if AnnSnd = EMPTY or voidp(AnnSnd) then exit
  16.   puppetsound CoachSnd
  17.   updatestage
  18. end
  19.  
  20.  
  21. on loadAudioMediaTeam x
  22.   puppetsound 0
  23.   case the framelabel of
  24.     "1D","2A":
  25.       set markerName = the name of member (the membernum of sprite x) of castlib "teamplya.cst" &"_AUDIO"
  26.       set start = the number of member markername 
  27.       set AnnSnd = the name of member (start+1) of castlib "teamplya.cst"
  28.       set CoachSnd = the name of member (start+2) of castlib "teamplya.cst"
  29.     "3D","4A":
  30.       set markerName = the name of member (the membernum of sprite x) &"_AUDIO"
  31.       set start = the number of member markername 
  32.       set AnnSnd = the name of member (start+1) of castlib "internal"
  33.       set CoachSnd = the name of member (start+2) of castlib "internal"
  34.     "5D","6A":
  35.       set markerName = the name of member (the membernum of sprite x) of castlib "teamplyc.cst" &"_AUDIO"
  36.       set start = the number of member markername 
  37.       set AnnSnd = the name of member (start+1) of castlib "teamplyc.cst"
  38.       set CoachSnd = the name of member (start+2) of castlib "teamplyc.cst"
  39.   end case
  40.   
  41.   set the membernum of sprite 41 = the membernum of sprite 41+1
  42.   set the blend of sprite 41 = 100
  43.   setat(gbuttonState,41,2)
  44.   -- remove the next lines after all the sound is in
  45.   -- this line bails if no sound files are present
  46.   if AnnSnd = EMPTY or voidp(AnnSnd) then exit
  47.   puppetsound CoachSnd
  48.   updatestage
  49. end
  50.  
  51. global gclipout,gstory
  52. on loadAudioMediaBTG x
  53.   puppetsound 0
  54.   set markerName = the name of member (the membernum of sprite x) &"_AUDIO"
  55.   if markerName = "SHOW_AUDIO" then exit
  56.   set start = the number of member markername 
  57.   set AnnSnd = the name of member (start+1) of castlib "internal"
  58.   set gstory = the name of member (start+2) of castlib "internal"
  59.   -- remove the next lines after all the sound is in
  60.   -- this line bails if no sound files are present
  61.   if AnnSnd = EMPTY or voidp(AnnSnd) then exit
  62.   
  63.   puppetsprite 48,1
  64.   set the membernum of sprite 48 = the number of member gstory
  65.   set  gClipOut = (the duration of member  gstory)-30 -- sets the end point for the script videoplayer
  66.   updatestage
  67. end